package ClassOne.Map容器;

import java.util.HashMap;
import java.util.Map;
import java.util.TreeMap;

public class Test {
    public static void main(String[] args) {
        Map map=new HashMap();//不排序
        map.put("jay","周杰伦");
        map.put("wangfen","晚饭");
        map.put("hello","你好");
        map.put("no","不");
        System.out.println(map);

        Map map1=new TreeMap();//排序
        map1.put("jay","周杰伦");
        map1.put("wangfen","晚饭");
        map1.put("hello","你好");
        map1.put("no","不");
        System.out.println(map1);
    }
}
